package ${sourceBasePackage}.dto;

import com.cscec81.cloud.common.domain.CommonPageReq;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

import java.util.Date;
import java.math.BigDecimal;

/**
 * ${description}(${entityName})查询类
 * @author ${author}
 */
@ApiModel(description = "${description}PageReq")
@Data
public class ${entityName}ReqDto extends CommonPageReq {

	<#list searchFields as po>
    <#if po.listQuery == 'interval' || po.listQuery == 'between'>
    /**
     * ${po.description}开始
     */
    @ApiModelProperty("${po.description}开始")
    <#if po.propertyType == 'Date'>
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    </#if>
    private ${po.propertyType} ${po.propertyName}Start;
    /**
     * ${po.description}结束
     */
    @ApiModelProperty("${po.description}结束")
    <#if po.propertyType == 'Date'>
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    </#if>
    private ${po.propertyType} ${po.propertyName}End;
    <#else>
    /**
    * ${po.description}
    */
    @ApiModelProperty("${po.description}")
    <#if po.propertyType == 'Date'>
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    </#if>
    private ${po.propertyType} ${po.propertyName};
    </#if>
    </#list>

}
